package Code.Day5_20240922.com.dx.day05;

import lombok.Getter;
import lombok.Setter;

/**
 * @ClassName Dog
 * @Description 宠物-小狗
 * @Author 12994
 * @Date 2024/9/22 15:48
 * @Version 1.0
 **/
@Getter
@Setter
public class Dogs extends Pets {
    private String pinZhong;

    public Dogs(String name, String colors, int age, String pinZhong) {
        super(name, colors, age);
        this.pinZhong = pinZhong;
    }

    @Override
    public String toString() {
        return super.toString() + ", 品种是: " + this.pinZhong + ".";
    }
}
